load("//:build/wd_test.bzl", "wd_test")
load("//src/workerd/server/tests/python:py_wd_test.bzl", "py_wd_test")

wd_test(
    src = "d1-api-test.wd-test",
    args = ["--experimental"],
    data = glob(
        ["*.js"],
        exclude = ["d1-api-test-with-sessions.js"],
    ) + ["//src/cloudflare/internal/test:instrumentation-test-helper.js"],
)

wd_test(
    src = "d1-api-test-with-sessions.wd-test",
    args = ["--experimental"],
    data = glob(["*.js"]),
)

py_wd_test(
    size = "large",
    src = "python-d1-api-test.wd-test",
    args = ["--experimental"],
    data = glob([
        "*.py",
        "*.js",
    ]),
    make_snapshot = False,
    use_snapshot = None,
)
